package bb.lanxing.model.database;

import android.os.Parcel;
import android.os.Parcelable;

import androidx.annotation.NonNull;

public class EventApproveUser implements Parcelable {
    public String avatar;
    public String nickName;
    public int userId;
    public String phoneNumber;
    public String status;

    public EventApproveUser() {
    }

    protected EventApproveUser(Parcel in) {
        avatar = in.readString();
        nickName = in.readString();
        userId = in.readInt();
        phoneNumber = in.readString();
        status = in.readString();
    }

    public static final Creator<EventApproveUser> CREATOR = new Creator<>() {
        @Override
        public EventApproveUser createFromParcel(Parcel in) {
            return new EventApproveUser(in);
        }

        @Override
        public EventApproveUser[] newArray(int size) {
            return new EventApproveUser[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(@NonNull Parcel dest, int flags) {
        dest.writeString(avatar);
        dest.writeString(nickName);
        dest.writeInt(userId);
        dest.writeString(phoneNumber);
        dest.writeString(status);
    }
}